/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bonc.common.security.controller;

import com.bonc.common.bean.PageContent;
import com.bonc.common.bean.ResultMessage;
import com.bonc.common.security.entity.SysUser;
import com.bonc.common.security.entity.*;

import com.bonc.common.security.service.*;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * SysUser的RestController
 * @author 自动生成的代码
 */
@RestController
@RequestMapping(value = "/api/sysUser2")
public class SysUserRestController2 {
    
        
     @Autowired
    private SysUserService2 sysUserService2;


    

    /**
     * @return the sysUserService
     */
    public SysUserService2 getSysUserService2() {
        return sysUserService2;
    }

    /**
     * @param sysUserService the sysUserService to set
     */
    public void setSysUserService2(SysUserService2 sysUserService2) {
        this.sysUserService2 = sysUserService2;
    }

     
   
    /**
     * 提取单个用户
     *
     * @param id
     * @return
     */
    @RequestMapping(method = RequestMethod.GET)
    public SysUser get(String loginId) {

        SysUser sysUser = getSysUserService2().findByLoginId(loginId);

        return sysUser;

    }
    
    
    
    
}
